package com.settlement.system.service;

import com.settlement.system.model.entity.SysDemand;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.settlement.system.model.query.SysDemandQuery;
import com.settlement.system.model.form.SysDemandForm;
import com.settlement.system.model.vo.SysDemandImportVo;
import java.util.List;

/**
 * <p>
 * 用户需求表 服务类
 * </p>
 *
 * @author huangrensen
 * @since 2023-12-28
 */
public interface SysDemandService extends IService<SysDemand> {

    Page<SysDemand> getPage(SysDemandQuery queryParams);

    boolean saveSysDemand(SysDemandForm sysDemandForm);

    boolean saveSysDemand(SysDemand sysDemand);

    SysDemandForm getSysDemandFormData(Long id);

    boolean deleteSysDemand(String ids);

    void importData(List<SysDemandImportVo> importVos);

    List<SysDemandImportVo> findByIds(String idsStr);

    boolean updateResult(SysDemandForm sysDemandForm);

    void readDemand(Long demandId);

    List<SysDemand> demandList(Long userId, Integer pageNumber);
}
